#!/bin/bash

#通过IP存活判断JAKA控制柜是否启动
IP_ADDRESS="192.168.1.103"

if ping ${IP_ADDRESS} -c 3 &> /dev/null
then
    echo "0: JAKA is ready"
else
    echo "-1: JAKA control box ${IP_ADDRESS} is not open"
fi
